<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::MarkovChain&lt; Operator &gt; Class Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_markov_chain.html">MarkovChain</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_markov_chain-members.html">List of all members</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a>  </div>
  <div class="headertitle"><div class="title">shark::MarkovChain&lt; Operator &gt; Class Template Reference</div></div>
</div><!--header-->
<div class="contents">

<p>A single Markov chain.  
 <a href="classshark_1_1_markov_chain.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_markov_chain_8h_source.html">shark/Unsupervised/RBM/Sampling/MarkovChain.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:adf255589fa5c7f8a2e0f868b4987efec" id="r_adf255589fa5c7f8a2e0f868b4987efec"><td class="memItemLeft" align="right" valign="top">typedef Operator::RBM&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_markov_chain.html#adf255589fa5c7f8a2e0f868b4987efec">RBM</a></td></tr>
<tr class="memdesc:adf255589fa5c7f8a2e0f868b4987efec"><td class="mdescLeft">&#160;</td><td class="mdescRight">The type of the <a class="el" href="classshark_1_1_r_b_m.html" title="stub for the RBM class. at the moment it is just a holder of the parameter set and the Energy.">RBM</a> the operator is working with.  <br /></td></tr>
<tr class="separator:adf255589fa5c7f8a2e0f868b4987efec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c380a5ddc78c38806410695e4034013" id="r_a2c380a5ddc78c38806410695e4034013"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structshark_1_1_batch.html">Batch</a>&lt; detail::MarkovChainSample&lt; HiddenSample, VisibleSample &gt; &gt;::type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_markov_chain.html#a2c380a5ddc78c38806410695e4034013">SampleBatch</a></td></tr>
<tr class="memdesc:a2c380a5ddc78c38806410695e4034013"><td class="mdescLeft">&#160;</td><td class="mdescRight">A batch of samples containing hidden and visible samples as well as the energies.  <br /></td></tr>
<tr class="separator:a2c380a5ddc78c38806410695e4034013"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefa956dcbecb71821ee9ab0f2b52b36d" id="r_aefa956dcbecb71821ee9ab0f2b52b36d"><td class="memItemLeft" align="right" valign="top">typedef SampleBatch::reference&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_markov_chain.html#aefa956dcbecb71821ee9ab0f2b52b36d">reference</a></td></tr>
<tr class="memdesc:aefa956dcbecb71821ee9ab0f2b52b36d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Mutable reference to an element of the batch.  <br /></td></tr>
<tr class="separator:aefa956dcbecb71821ee9ab0f2b52b36d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abcef6f4d0cc60a3027d86954a2b7b9ce" id="r_abcef6f4d0cc60a3027d86954a2b7b9ce"><td class="memItemLeft" align="right" valign="top">typedef SampleBatch::const_reference&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_markov_chain.html#abcef6f4d0cc60a3027d86954a2b7b9ce">const_reference</a></td></tr>
<tr class="memdesc:abcef6f4d0cc60a3027d86954a2b7b9ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">Immutable reference to an element of the batch.  <br /></td></tr>
<tr class="separator:abcef6f4d0cc60a3027d86954a2b7b9ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a71e522eea7f19e4a6d20833ee72b9caa" id="r_a71e522eea7f19e4a6d20833ee72b9caa"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_markov_chain.html#a71e522eea7f19e4a6d20833ee72b9caa">MarkovChain</a> (<a class="el" href="classshark_1_1_markov_chain.html#adf255589fa5c7f8a2e0f868b4987efec">RBM</a> *rbm)</td></tr>
<tr class="memdesc:a71e522eea7f19e4a6d20833ee72b9caa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br  />
  <br /></td></tr>
<tr class="separator:a71e522eea7f19e4a6d20833ee72b9caa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a755918bff14a10d22afc8c78e78582d0" id="r_a755918bff14a10d22afc8c78e78582d0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_markov_chain.html#a755918bff14a10d22afc8c78e78582d0">setBatchSize</a> (std::size_t <a class="el" href="classshark_1_1_markov_chain.html#af08ad5f1c8a58c1c8e8981f480a560ba">batchSize</a>)</td></tr>
<tr class="memdesc:a755918bff14a10d22afc8c78e78582d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the number of parallel samples to be evaluated.  <br /></td></tr>
<tr class="separator:a755918bff14a10d22afc8c78e78582d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af08ad5f1c8a58c1c8e8981f480a560ba" id="r_af08ad5f1c8a58c1c8e8981f480a560ba"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_markov_chain.html#af08ad5f1c8a58c1c8e8981f480a560ba">batchSize</a> ()</td></tr>
<tr class="separator:af08ad5f1c8a58c1c8e8981f480a560ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeca1e601f471e959b5047b9afa9b7a72" id="r_aeca1e601f471e959b5047b9afa9b7a72"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_markov_chain.html#aeca1e601f471e959b5047b9afa9b7a72">initializeChain</a> (<a class="el" href="classshark_1_1_data.html">Data</a>&lt; RealVector &gt; const &amp;dataSet)</td></tr>
<tr class="memdesc:aeca1e601f471e959b5047b9afa9b7a72"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes with data points drawn uniform from the set.  <br /></td></tr>
<tr class="separator:aeca1e601f471e959b5047b9afa9b7a72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab686c09c3aeb1f93a0700410924e8989" id="r_ab686c09c3aeb1f93a0700410924e8989"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_markov_chain.html#ab686c09c3aeb1f93a0700410924e8989">initializeChain</a> (RealMatrix const &amp;sampleData)</td></tr>
<tr class="memdesc:ab686c09c3aeb1f93a0700410924e8989"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes with data points from a batch of points.  <br /></td></tr>
<tr class="separator:ab686c09c3aeb1f93a0700410924e8989"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af76c0b5c4c033eca275c503fa6ff8233" id="r_af76c0b5c4c033eca275c503fa6ff8233"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_markov_chain.html#af76c0b5c4c033eca275c503fa6ff8233">step</a> (unsigned int numberOfSteps)</td></tr>
<tr class="memdesc:af76c0b5c4c033eca275c503fa6ff8233"><td class="mdescLeft">&#160;</td><td class="mdescRight">Runs the chain for a given number of steps.  <br /></td></tr>
<tr class="separator:af76c0b5c4c033eca275c503fa6ff8233"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab42a842328c4ac25b4b18725c7cc9e03" id="r_ab42a842328c4ac25b4b18725c7cc9e03"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_markov_chain.html#abcef6f4d0cc60a3027d86954a2b7b9ce">const_reference</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_markov_chain.html#ab42a842328c4ac25b4b18725c7cc9e03">sample</a> () const</td></tr>
<tr class="memdesc:ab42a842328c4ac25b4b18725c7cc9e03"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current sample of the Markov chain.  <br /></td></tr>
<tr class="separator:ab42a842328c4ac25b4b18725c7cc9e03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2453c2aaca5d5f70c4d22d47b24bc667" id="r_a2453c2aaca5d5f70c4d22d47b24bc667"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_markov_chain.html#a2c380a5ddc78c38806410695e4034013">SampleBatch</a> const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_markov_chain.html#a2453c2aaca5d5f70c4d22d47b24bc667">samples</a> () const</td></tr>
<tr class="memdesc:a2453c2aaca5d5f70c4d22d47b24bc667"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current batch of samples of the Markov chain.  <br /></td></tr>
<tr class="separator:a2453c2aaca5d5f70c4d22d47b24bc667"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae952740958de04c5a3024caa234a9007" id="r_ae952740958de04c5a3024caa234a9007"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_markov_chain.html#a2c380a5ddc78c38806410695e4034013">SampleBatch</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_markov_chain.html#ae952740958de04c5a3024caa234a9007">samples</a> ()</td></tr>
<tr class="memdesc:ae952740958de04c5a3024caa234a9007"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current batch of samples of the Markov chain.  <br /></td></tr>
<tr class="separator:ae952740958de04c5a3024caa234a9007"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad09fd04ce6823fcb96d671a5d80f4c32" id="r_ad09fd04ce6823fcb96d671a5d80f4c32"><td class="memItemLeft" align="right" valign="top">Operator const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_markov_chain.html#ad09fd04ce6823fcb96d671a5d80f4c32">transitionOperator</a> () const</td></tr>
<tr class="memdesc:ad09fd04ce6823fcb96d671a5d80f4c32"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the transition operator of the Markov chain.  <br /></td></tr>
<tr class="separator:ad09fd04ce6823fcb96d671a5d80f4c32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf14dc5f13a3d642021f1b2c61ef9c35" id="r_abf14dc5f13a3d642021f1b2c61ef9c35"><td class="memItemLeft" align="right" valign="top">Operator &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_markov_chain.html#abf14dc5f13a3d642021f1b2c61ef9c35">transitionOperator</a> ()</td></tr>
<tr class="memdesc:abf14dc5f13a3d642021f1b2c61ef9c35"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the transition operator of the Markov chain.  <br /></td></tr>
<tr class="separator:abf14dc5f13a3d642021f1b2c61ef9c35"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-attribs" name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:a4f03d31c124bb304ce5776d6e4d1d73b" id="r_a4f03d31c124bb304ce5776d6e4d1d73b"><td class="memItemLeft" align="right" valign="top">static const bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_markov_chain.html#a4f03d31c124bb304ce5776d6e4d1d73b">computesBatch</a> = true</td></tr>
<tr class="memdesc:a4f03d31c124bb304ce5776d6e4d1d73b"><td class="mdescLeft">&#160;</td><td class="mdescRight">The <a class="el" href="classshark_1_1_markov_chain.html" title="A single Markov chain.">MarkovChain</a> can be used to compute several samples at once.  <br /></td></tr>
<tr class="separator:a4f03d31c124bb304ce5776d6e4d1d73b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;class Operator&gt;<br />
class shark::MarkovChain&lt; Operator &gt;</div><p>A single Markov chain. </p>
<p>You can run the Markov chain for some sampling steps by applying a transition operator. </p>

<p class="definition">Definition at line <a class="el" href="_markov_chain_8h_source.html#l00043">43</a> of file <a class="el" href="_markov_chain_8h_source.html">MarkovChain.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="abcef6f4d0cc60a3027d86954a2b7b9ce" name="abcef6f4d0cc60a3027d86954a2b7b9ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abcef6f4d0cc60a3027d86954a2b7b9ce">&#9670;&#160;</a></span>const_reference</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Operator &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef SampleBatch::const_reference <a class="el" href="classshark_1_1_markov_chain.html">shark::MarkovChain</a>&lt; Operator &gt;::const_reference</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Immutable reference to an element of the batch. </p>

<p class="definition">Definition at line <a class="el" href="_markov_chain_8h_source.html#l00061">61</a> of file <a class="el" href="_markov_chain_8h_source.html">MarkovChain.h</a>.</p>

</div>
</div>
<a id="adf255589fa5c7f8a2e0f868b4987efec" name="adf255589fa5c7f8a2e0f868b4987efec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adf255589fa5c7f8a2e0f868b4987efec">&#9670;&#160;</a></span>RBM</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Operator &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef Operator::RBM <a class="el" href="classshark_1_1_markov_chain.html">shark::MarkovChain</a>&lt; Operator &gt;::RBM</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The type of the <a class="el" href="classshark_1_1_r_b_m.html" title="stub for the RBM class. at the moment it is just a holder of the parameter set and the Energy.">RBM</a> the operator is working with. </p>

<p class="definition">Definition at line <a class="el" href="_markov_chain_8h_source.html#l00053">53</a> of file <a class="el" href="_markov_chain_8h_source.html">MarkovChain.h</a>.</p>

</div>
</div>
<a id="aefa956dcbecb71821ee9ab0f2b52b36d" name="aefa956dcbecb71821ee9ab0f2b52b36d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aefa956dcbecb71821ee9ab0f2b52b36d">&#9670;&#160;</a></span>reference</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Operator &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef SampleBatch::reference <a class="el" href="classshark_1_1_markov_chain.html">shark::MarkovChain</a>&lt; Operator &gt;::reference</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Mutable reference to an element of the batch. </p>

<p class="definition">Definition at line <a class="el" href="_markov_chain_8h_source.html#l00058">58</a> of file <a class="el" href="_markov_chain_8h_source.html">MarkovChain.h</a>.</p>

</div>
</div>
<a id="a2c380a5ddc78c38806410695e4034013" name="a2c380a5ddc78c38806410695e4034013"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c380a5ddc78c38806410695e4034013">&#9670;&#160;</a></span>SampleBatch</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Operator &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="structshark_1_1_batch.html">Batch</a>&lt;detail::MarkovChainSample&lt;HiddenSample,VisibleSample&gt;&gt;::type <a class="el" href="classshark_1_1_markov_chain.html">shark::MarkovChain</a>&lt; Operator &gt;::SampleBatch</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A batch of samples containing hidden and visible samples as well as the energies. </p>

<p class="definition">Definition at line <a class="el" href="_markov_chain_8h_source.html#l00055">55</a> of file <a class="el" href="_markov_chain_8h_source.html">MarkovChain.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a71e522eea7f19e4a6d20833ee72b9caa" name="a71e522eea7f19e4a6d20833ee72b9caa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71e522eea7f19e4a6d20833ee72b9caa">&#9670;&#160;</a></span>MarkovChain()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Operator &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_markov_chain.html">shark::MarkovChain</a>&lt; Operator &gt;::MarkovChain </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_markov_chain.html#adf255589fa5c7f8a2e0f868b4987efec">RBM</a> *&#160;</td>
          <td class="paramname"><em>rbm</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Constructor. <br  />
 </p>

<p class="definition">Definition at line <a class="el" href="_markov_chain_8h_source.html#l00070">70</a> of file <a class="el" href="_markov_chain_8h_source.html">MarkovChain.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="af08ad5f1c8a58c1c8e8981f480a560ba" name="af08ad5f1c8a58c1c8e8981f480a560ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af08ad5f1c8a58c1c8e8981f480a560ba">&#9670;&#160;</a></span>batchSize()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Operator &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::size_t <a class="el" href="classshark_1_1_markov_chain.html">shark::MarkovChain</a>&lt; Operator &gt;::batchSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_markov_chain_8h_source.html#l00079">79</a> of file <a class="el" href="_markov_chain_8h_source.html">MarkovChain.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_markov_chain.html#a755918bff14a10d22afc8c78e78582d0">shark::MarkovChain&lt; Operator &gt;::setBatchSize()</a>, and <a class="el" href="classshark_1_1_markov_chain.html#af76c0b5c4c033eca275c503fa6ff8233">shark::MarkovChain&lt; Operator &gt;::step()</a>.</p>

</div>
</div>
<a id="aeca1e601f471e959b5047b9afa9b7a72" name="aeca1e601f471e959b5047b9afa9b7a72"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeca1e601f471e959b5047b9afa9b7a72">&#9670;&#160;</a></span>initializeChain() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Operator &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_markov_chain.html">shark::MarkovChain</a>&lt; Operator &gt;::initializeChain </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_data.html">Data</a>&lt; RealVector &gt; const &amp;&#160;</td>
          <td class="paramname"><em>dataSet</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Initializes with data points drawn uniform from the set. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dataSet</td><td>the data set </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_markov_chain_8h_source.html#l00086">86</a> of file <a class="el" href="_markov_chain_8h_source.html">MarkovChain.h</a>.</p>

<p class="reference">References <a class="el" href="namespaceshark_1_1random.html#aa64d4174eaf7111b03e0504eaa56b666">shark::random::discrete()</a>, <a class="el" href="group__shark__globals.html#ga0ea72a74a21d5ff59772516b83c4a58b">shark::Data&lt; Type &gt;::element()</a>, <a class="el" href="classshark_1_1_markov_chain.html#aeca1e601f471e959b5047b9afa9b7a72">shark::MarkovChain&lt; Operator &gt;::initializeChain()</a>, and <a class="el" href="group__shark__globals.html#ga814e8b0028cc90dd2af69805e8f8a04d">shark::Data&lt; Type &gt;::numberOfElements()</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_markov_chain.html#aeca1e601f471e959b5047b9afa9b7a72">shark::MarkovChain&lt; Operator &gt;::initializeChain()</a>.</p>

</div>
</div>
<a id="ab686c09c3aeb1f93a0700410924e8989" name="ab686c09c3aeb1f93a0700410924e8989"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab686c09c3aeb1f93a0700410924e8989">&#9670;&#160;</a></span>initializeChain() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Operator &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_markov_chain.html">shark::MarkovChain</a>&lt; Operator &gt;::initializeChain </td>
          <td>(</td>
          <td class="paramtype">RealMatrix const &amp;&#160;</td>
          <td class="paramname"><em>sampleData</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Initializes with data points from a batch of points. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sampleData</td><td><a class="el" href="classshark_1_1_data.html" title="Data container.">Data</a> set </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_markov_chain_8h_source.html#l00099">99</a> of file <a class="el" href="_markov_chain_8h_source.html">MarkovChain.h</a>.</p>

</div>
</div>
<a id="ab42a842328c4ac25b4b18725c7cc9e03" name="ab42a842328c4ac25b4b18725c7cc9e03"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab42a842328c4ac25b4b18725c7cc9e03">&#9670;&#160;</a></span>sample()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Operator &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_markov_chain.html#abcef6f4d0cc60a3027d86954a2b7b9ce">const_reference</a> <a class="el" href="classshark_1_1_markov_chain.html">shark::MarkovChain</a>&lt; Operator &gt;::sample </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the current sample of the Markov chain. </p>

<p class="definition">Definition at line <a class="el" href="_markov_chain_8h_source.html#l00111">111</a> of file <a class="el" href="_markov_chain_8h_source.html">MarkovChain.h</a>.</p>

</div>
</div>
<a id="ae952740958de04c5a3024caa234a9007" name="ae952740958de04c5a3024caa234a9007"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae952740958de04c5a3024caa234a9007">&#9670;&#160;</a></span>samples() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Operator &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_markov_chain.html#a2c380a5ddc78c38806410695e4034013">SampleBatch</a> &amp; <a class="el" href="classshark_1_1_markov_chain.html">shark::MarkovChain</a>&lt; Operator &gt;::samples </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the current batch of samples of the Markov chain. </p>

<p class="definition">Definition at line <a class="el" href="_markov_chain_8h_source.html#l00121">121</a> of file <a class="el" href="_markov_chain_8h_source.html">MarkovChain.h</a>.</p>

</div>
</div>
<a id="a2453c2aaca5d5f70c4d22d47b24bc667" name="a2453c2aaca5d5f70c4d22d47b24bc667"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2453c2aaca5d5f70c4d22d47b24bc667">&#9670;&#160;</a></span>samples() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Operator &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_markov_chain.html#a2c380a5ddc78c38806410695e4034013">SampleBatch</a> const  &amp; <a class="el" href="classshark_1_1_markov_chain.html">shark::MarkovChain</a>&lt; Operator &gt;::samples </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the current batch of samples of the Markov chain. </p>

<p class="definition">Definition at line <a class="el" href="_markov_chain_8h_source.html#l00116">116</a> of file <a class="el" href="_markov_chain_8h_source.html">MarkovChain.h</a>.</p>

</div>
</div>
<a id="a755918bff14a10d22afc8c78e78582d0" name="a755918bff14a10d22afc8c78e78582d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a755918bff14a10d22afc8c78e78582d0">&#9670;&#160;</a></span>setBatchSize()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Operator &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_markov_chain.html">shark::MarkovChain</a>&lt; Operator &gt;::setBatchSize </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>batchSize</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sets the number of parallel samples to be evaluated. </p>

<p class="definition">Definition at line <a class="el" href="_markov_chain_8h_source.html#l00074">74</a> of file <a class="el" href="_markov_chain_8h_source.html">MarkovChain.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_markov_chain.html#af08ad5f1c8a58c1c8e8981f480a560ba">shark::MarkovChain&lt; Operator &gt;::batchSize()</a>.</p>

</div>
</div>
<a id="af76c0b5c4c033eca275c503fa6ff8233" name="af76c0b5c4c033eca275c503fa6ff8233"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af76c0b5c4c033eca275c503fa6ff8233">&#9670;&#160;</a></span>step()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Operator &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_markov_chain.html">shark::MarkovChain</a>&lt; Operator &gt;::step </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>numberOfSteps</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Runs the chain for a given number of steps. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">numberOfSteps</td><td>the number of steps </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_markov_chain_8h_source.html#l00106">106</a> of file <a class="el" href="_markov_chain_8h_source.html">MarkovChain.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_markov_chain.html#af08ad5f1c8a58c1c8e8981f480a560ba">shark::MarkovChain&lt; Operator &gt;::batchSize()</a>.</p>

</div>
</div>
<a id="abf14dc5f13a3d642021f1b2c61ef9c35" name="abf14dc5f13a3d642021f1b2c61ef9c35"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf14dc5f13a3d642021f1b2c61ef9c35">&#9670;&#160;</a></span>transitionOperator() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Operator &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Operator &amp; <a class="el" href="classshark_1_1_markov_chain.html">shark::MarkovChain</a>&lt; Operator &gt;::transitionOperator </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the transition operator of the Markov chain. </p>

<p class="definition">Definition at line <a class="el" href="_markov_chain_8h_source.html#l00131">131</a> of file <a class="el" href="_markov_chain_8h_source.html">MarkovChain.h</a>.</p>

</div>
</div>
<a id="ad09fd04ce6823fcb96d671a5d80f4c32" name="ad09fd04ce6823fcb96d671a5d80f4c32"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad09fd04ce6823fcb96d671a5d80f4c32">&#9670;&#160;</a></span>transitionOperator() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Operator &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Operator const  &amp; <a class="el" href="classshark_1_1_markov_chain.html">shark::MarkovChain</a>&lt; Operator &gt;::transitionOperator </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the transition operator of the Markov chain. </p>

<p class="definition">Definition at line <a class="el" href="_markov_chain_8h_source.html#l00126">126</a> of file <a class="el" href="_markov_chain_8h_source.html">MarkovChain.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a4f03d31c124bb304ce5776d6e4d1d73b" name="a4f03d31c124bb304ce5776d6e4d1d73b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4f03d31c124bb304ce5776d6e4d1d73b">&#9670;&#160;</a></span>computesBatch</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Operator &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const bool <a class="el" href="classshark_1_1_markov_chain.html">shark::MarkovChain</a>&lt; Operator &gt;::computesBatch = true</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The <a class="el" href="classshark_1_1_markov_chain.html" title="A single Markov chain.">MarkovChain</a> can be used to compute several samples at once. </p>

<p class="definition">Definition at line <a class="el" href="_markov_chain_8h_source.html#l00050">50</a> of file <a class="el" href="_markov_chain_8h_source.html">MarkovChain.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/Unsupervised/RBM/Sampling/<a class="el" href="_markov_chain_8h_source.html">MarkovChain.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
